window.onload = function() {
	/* body... */
	$('.requireLabel').hover(function() {
		var positionX = $(this).offset().left + 10;
		var positionY = $(this).offset().top - 60;
		var toolTip = myTooltip();
		switch ($(this).parent().index()) {
			case 1:
				toolTip.getTooltip(positionX,positionY,"必填")
				break;
			case 2:
				toolTip.getTooltip(positionX,positionY,"必填")
				break;
			case 3:
				toolTip.getTooltip(positionX,positionY,"必填")
				break;
			case 4:
				toolTip.getTooltip(positionX,positionY,"必填")
				break;
			default:
				alert("出错");
				break;
		}
	}, function() {});

}

function myTooltip() {
	// body...  
	this.toolTip = $('<div></div>');
	this.arrow = $('<em></em>');
	this.toolTipAll = $('<div></div>')
	this.tipMessage = tipMessage;

}
myTooltip.prototype.getTooltip = function(x, y, msg) {
	/* body... */
	toolTip.css({
		backgroundColor: 'rgba(48,144,228,1)',
		position: 'absolutez',
		padding: '10px',
		color: 'white',
		borderRadius: "5px",
		top: positionY,
		left: positionX,
		opacity: '0'
	});

	toolTip.animate({
		opacity: .9
	}, 300)

	arrow.css({
		position: 'absolute',
		left: '15px',
		top: '30px',
		width: '0',
		height: '0',
		border: '7px solid rgba(48,144,228,1)',
		borderColor: 'rgba(48,144,228,1) transparent transparent',
		lineHeight: '0',
		fontSize: '0',
	});

	toolTip.append($('<span>'+tipMessage+'</span>'))
	toolTip.append(arrow);

	return toolTip;

}

function someclass (argument) {
	 // body...  
	 this.name = "asd"
	 this.show = function  (argument) {
	 	 // body...  
	 }
}
var someclass = {
	name:"sad",
	show : function(){
		
	}

}